package cn.edu.sdju.fengguoyu.ahoedgemonitor;

import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;

import java.util.List;

public abstract class Sprite {
    protected double x = 100;
    protected int status = 0;

    abstract List<String> getHitList();


    public void  getRelatedData() {

    }

    public void setStatus(int status) {
        this.status = status;
    }

    protected double getX() {
        return x;
    }

    protected void setX(double x) {
        this.x = x;
    }

    protected void setY(double y) {
        this.y = y;
    }

    protected double getY() {
        return y;
    }

    public double getHeight() {
        return height;
    }

    public double getWidth() {
        return width;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    protected double y = 150;
    protected double width = 43;
    protected double height = 53;
    public abstract void draw(GraphicsContext gc);
}
